#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
    int m, n, num;
    scanf("%d %d", &m, &n);

    num = m * n;
    while (num)
    {
        printf("%d", num % 10);
        num /= 10;
    }
    return 0;
}